<?php

namespace my\kaoqin;

class KqErrCode
{
    public static $errCode = array(
        '0' => '请求成功',
        '1' => '系统繁忙，开发者稍后再试',
        '2' => '请求参数格式错误',
        '304' => '上级部门 ID 不存在',
        '3050200' => '同级部门最多存在 90 个部门',
        '3050201' => '该部门禁止添加下级部门',
        '3050202' => '部门层级最多 7 层',
        '3050203' => '部门编号已存在',
        '3050301' => '部门名称不能超过 10 个字符',
        '3050302' => '不能输入特殊字符',
        '701' => '开发者账号错误',
        '702' => '开发者账号已被停用',
        '70101' => 'access_token 错误',
        '70102' => 'access_token 已失效',
        '70103' => '企业号未授权',
        '70104' => '签名错误'
    );

    public static function getErrText($err)
    {
        if (isset(self::$errCode[$err])) return self::$errCode[$err];
        else return false;
    }
}